<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            border: 1px solid red;
            width: 200px;
            height: 50px;
            /*设置内容水平对齐方式: left/right/center*/
            text-align: center;
            /*文本修饰:控制一条线的位置/*/
            text-decoration: overline;
            text-decoration: underline;
            text-decoration: line-through;
            text-decoration: none;
            /*行高:1.多行控制行间距 2.单行实现垂直居中*/
            line-height: 50px;
            /*设置阴影: 颜色 x偏移值 y偏移值 浓度*/
            text-shadow: red -20px -20px 3px;
            /*字体大小*/
            font-size: 30px;
            font-weight: bold;/*字体加粗*/
            font-style: italic;/*设置斜体*/
        }
        h1{
            font-weight: normal;/*去掉加粗*/
            font-family: cursive;
            font: 50px cursive;
        }
        a {text-decoration: none}
    </style>
</head>
<body>
<h1>这是h1</h1>
<a href="">超链接</a>
<div>
    文本和字体


</div>

</body>
</html>